cmake_minimum_required (VERSION 3.10)

project(example_leveldb)

find_package(leveldb QUIET)
if(leveldb_FOUND)
    message(STATUS "build ${PROJECT_NAME}")
    aux_source_directory(. DIR_SOURCES)
    add_executable (${PROJECT_NAME} ${DIR_SOURCES})
    target_link_libraries(${PROJECT_NAME} leveldb::leveldb)
endif()
